import { httpTokenRequest } from '../utils/http.js';

//首页小竹叶弹窗
export function getHomePopup(params) {
	return httpTokenRequest({
		url: '/api/User/getzhuyewindow',
		method: 'POST',
		params: params
	});
}
//获取版本更新信息
export function getVersion(params) {
	return httpTokenRequest({
		url: '/api/index/openwindow',
		method: 'POST',
		params: params
	});
}

//获取版本更新信息
export function getNewVersionWindow(params) {
	return httpTokenRequest({
		url: '/api/index/new_openwindow',
		method: 'POST',
		params: params
	});
}

export function getNewUserActive(params) {
	return httpTokenRequest({
		url: '/api/index/get_newuseractive',
		method: 'POST',
		params: params
	});
}

// 获取首页随机资讯
export function getShowinfo(params) {
	return httpTokenRequest({
		url: '/api/index/showinfo',
		method: 'POST',
		params: params
	});
}


//获取用户分析
export function getUserAnalysis(params) {
	return httpTokenRequest({
		url: '/api/index/add_analysedata',
		method: 'POST',
		params: params
	});
}